package cn.btks.resultintegration.rule.service.impl;

import cn.btks.resultintegration.rule.pojo.TwoHighThirdCategory;
import cn.btks.resultintegration.rule.repository.TwoHighThirdCategoryRepository;
import cn.btks.resultintegration.rule.service.TwoHighThirdCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author lijun
 * @Date 2021/10/15 10:16
 */
@Service
public class TwoHighThirdCategoryServiceImpl implements TwoHighThirdCategoryService {

    @Autowired
    TwoHighThirdCategoryRepository twoHighThirdCategoryRepository;

    @Override
    public List<TwoHighThirdCategory> findAllByParentId(Long parentId) {
        return twoHighThirdCategoryRepository.findAllByParentId(parentId);
    }
}
